package com.clwl.supervise.superviseapp.mapper.base;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.base.TsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface TsUserMapper extends BaseMapper<TsUser> {


    TsUser findUserByUserName(@Param("username") String username);


    List<TsUser> selectByDeptId(@Param("deptId") Long deptId);

    List<TsUser> selectByIds(@Param("list") Set<Long> usersSet);


    TsUser selectByUserName(@Param("username") String username);
}